class Solution():
    def singleNumber(self, nums):
        return reduce(lambda x, y: x ^ y, nums)

if __name__=='__main__':
    a=Solution()
    nums=[2,1,3,5,3,5,2]
    result=a.singleNumber(nums)
    print(result)